Table of Contents

Module: Import .\src\TW\Utils\Import.py

Tools for doing dynamic imports

Functions   
importString
  importString 
importString ( name )

Import an item specified by a string

Example Usage:

            attribute1 = importString('some.module.attribute1')
            attribute2 = importString('other.module:nested.attribute2')

importString imports an object from a module, according to an import specification string: a dot-delimited path to an object in the Python package namespace. For example, the string "some.module.attribute" is equivalent to the result of from some.module import attribute.

If you need to access a sub-object of an imported object, use use ":" to seperate the attribute spec from the module name. In other words, "other.module:nested.attribute" is equivalent to from other.module import nested; nested.attribute.

If you want just the module itself, simply give its full dotted name.

Classes   
lazyImport

Proxy standing in for something that shouldn't import until later


Table of Contents

This document was automatically generated on Tue Mar 05 10:33:49 2002 by HappyDoc version WORKING